import 'package:flutter/material.dart';
import 'package:moose_app/core/utils/navigate_util.dart';
import 'package:moose_app/ui/screens/login/login_screen.dart';
import 'package:moose_app/ui/screens/register/register_screen.dart';
import 'package:moose_app/ui/values/values.dart';
import 'package:moose_app/ui/widgets/auth/auth_button.dart';

import 'welcome_background.dart';

class ATHWelcomeBody extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ATHWelcomeBackground(
      child: SingleChildScrollView(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              "欢迎",
              textAlign: TextAlign.center,
              style:
                  TextStyle(fontWeight: FontWeight.bold, fontSize: kFontSize28),
            ),
            Image.asset('assets/images/welcome.png'),
            ATHAuthButton(
              text: "登录",
              press: () {
                ATHNavigator.pushReplace(context, ATHLoginScreen.routeName);
              },
            ),
            ATHAuthButton(
              text: "注册",
              color: kColorPrimaryLight,
              textColor: Colors.black,
              press: () {
                ATHNavigator.pushReplace(context, ATHRegisterScreen.routeName);
              },
            ),
          ],
        ),
      ),
    );
  }
}
